<?php

namespace app\api\controller;

use app\api\lists\key_project\KeyProjectLists;
use app\api\logic\ArticleLogic;
use app\api\logic\KeyProjectLogic;
use app\common\controller\ApiController;

class KeyProject extends ApiController
{
    protected array $notNeedLogin = ['lists', 'detail'];

    public function detail()
    {
        $id = $this->request->get('id/d');
        $result = KeyProjectLogic::detail($id);
        return $this->data($result);
    }

    public function lists()
    {
        return $this->dataLists(new KeyProjectLists());
    }


}